import request from '@/utils/request'

import { commonBaseUrl } from '@/utils'

const moduleName = commonBaseUrl('B')
const moduleNameThree = commonBaseUrl('A')

//  决算编制:项目基础信息 专属信息 站址信息
export function getPrjDetail(params) {
    return request({
        url: moduleName + 'api/adjustment/queryPrjInfo',
        params
    })
}

//  决算编制:决算竣工信息(Loading)
export function queryTFinInfo(params) {
    return request({
        url: moduleName + 'tfinInfo/queryTFinInfo', // 斜杠
        method: 'get',
        params,
        showLoading: true
    })
}
export function queryTFinInfoNew(params) {
    return request({
        url: moduleName + 'tfinInfo/queryTFinInfo', // 斜杠
        method: 'get',
        params,
        showLoading: true
    })
}
// *决算下一步校验
// 决算编制:判断当前项目是否进行设计变更或者销项审核
export function isRevocationAndAdj(params) {
    return request({
        url: moduleName + 'finalAccountsVerify/isRevocationAndAdj', // 斜杠
        method: 'get',
        params
    })
}
export function isRevocationAndAdjNew(params) {
    return request({
        url: moduleName + 'finalAccountsVerify/isRevocationAndAdj', // 斜杠
        method: 'get',
        params
    })
}
// 决算编制:查询物资是否推送商合:0未推送、1已推送
export function getIsPush(params) {
    return request({
        url: moduleName + 'finalAccountsVerify/getIsPush', // 斜杠
        method: 'get',
        params
    })
}
export function getIsPushNew(params) {
    return request({
        url: moduleName + 'finalAccountsVerify/getIsPush', // 斜杠
        method: 'get',
        params
    })
}
// 决算编制:到货确认
export function confirmationOfArrival(params) {
    return request({
        url: moduleName + 'finalAccountsVerify/confirmationOfArrival', // 斜杠
        method: 'get',
        params
    })
}
export function confirmationOfArrivalNew(params) {
    return request({
        url: moduleName + 'finalAccountsVerify/confirmationOfArrival', // 斜杠
        method: 'get',
        params
    })
}
// 决算编制:结算流程是否完结
export function isSettleAccountsFinish(params) {
    return request({
        url: moduleName + 'finalAccountsVerify/isSettleAccountsFinish', // 斜杠
        method: 'get',
        params
    })
}
export function isSettleAccountsFinishNew(params) {
    return request({
        url: moduleName + 'finalAccountsVerify/isSettleAccountsFinish', // 斜杠
        method: 'get',
        params
    })
}
// 决算送审 项目专属信息
export function queryFinalSent(params) {
    return request({
        url: moduleName + 'tfinAudit/queryFinalSent',
        method: 'get',
        params
    })
}
export function queryFinalSentNew(params) {
    return request({
        url: moduleName + 'tfinAudit/queryFinalSent',
        method: 'get',
        params
    })
}
// 决算送审-决算明细表: 项目竣工决算总表(1)
export function queryTSubject(params) {
    return request({
        url: moduleName + 'tfinAudit/queryTSubject',
        method: 'get',
        params,
        showLoading: true
    })
}
export function queryTSubjectNew(params) {
    return request({
        url: moduleName + 'tfinAudit/queryTSubject',
        method: 'get',
        params,
        showLoading: true
    })
}
// 决算送审-决算明细表: 交付使用资产明细表(2)
export function queryTClosingPrjB(params) {
    return request({
        url: moduleName + 'tfinAudit/queryTClosingPrjB',
        method: 'get',
        params,
        showLoading: true
    })
}
export function queryTClosingPrjBNew(params) {
    return request({
        url: moduleName + 'tfinAudit/queryTClosingPrjB',
        method: 'get',
        params,
        showLoading: true
    })
}
// 决算送审-决算明细表: 辅助明细账(3)
export function queryTClosingPrjC(params) {
    return request({
        url: moduleName + 'tfinAudit/queryTClosingPrjC',
        method: 'get',
        params,
        showLoading: true
    })
}
export function queryTClosingPrjCNew(params) {
    return request({
        url: moduleName + 'tfinAudit/queryTClosingPrjC',
        method: 'get',
        params,
        showLoading: true
    })
}
// 决算送审-决算明细表: 工程付款信息统计表(4)
export function queryTClosingPrjD(params) {
    return request({
        url: moduleName + 'tfinAudit/queryTClosingPrjD',
        method: 'get',
        params,
        showLoading: true
    })
}
export function queryTClosingPrjDNew(params) {
    return request({
        url: moduleName + 'tfinAudit/queryTClosingPrjD',
        method: 'get',
        params,
        showLoading: true
    })
}
// 决算送审-决算明细表: 费用清单(5)
export function queryTClosingPrjE(params) {
    return request({
        url: moduleName + 'tfinAudit/queryTClosingPrjE',
        method: 'get',
        params,
        showLoading: true
    })
}
export function queryTClosingPrjENew(params) {
    return request({
        url: moduleName + 'tfinAudit/queryTClosingPrjE',
        method: 'get',
        params,
        showLoading: true
    })
}
// 决算送审-决算明细表: 设备清单(6)
export function queryTClosingPrjF(params) {
    return request({
        url: moduleName + 'tfinAudit/queryTClosingPrjF',
        method: 'get',
        params,
        showLoading: true
    })
}
export function queryTClosingPrjFNew(params) {
    return request({
        url: moduleName + 'tfinAudit/queryTClosingPrjF',
        method: 'get',
        params,
        showLoading: true
    })
}
// 决算送审-决算明细表: 成本单查询结果(7)
export function queryTClosingPrjG(params) {
    return request({
        url: moduleName + 'tfinAudit/queryTClosingPrjG',
        method: 'get',
        params,
        showLoading: true
    })
}
export function queryTClosingPrjGNew(params) {
    return request({
        url: moduleName + 'tfinAudit/queryTClosingPrjG',
        method: 'get',
        params,
        showLoading: true
    })
}
// 决算送审-更新财务 // 确认
export function updateFinancialData(params) {
    return request({
        url: moduleName + 'tfinAudit/updateFinancialData',
        method: 'post',
        params,
        showLoading: true
    })
}
export function updateFinancialDataNew(params) {
    return request({
        url: moduleName + 'tfinAudit/updateFinancialData',
        method: 'post',
        params,
        showLoading: true
    })
}
// 决算送审-项目送审 // 确认
export function finalSentAudit(params) {
    return request({
        url: moduleName + 'tfinAudit/finalSentAudit',
        method: 'post',
        params,
        showLoading: true
    })
}
export function finalSentAuditNew(params) {
    return request({
        url: moduleName + 'tfinAudit/finalSentAudit',
        method: 'post',
        params,
        showLoading: true
    })
}
// 决算送审-项目送审
export function trailFeeVerify(params) {
    return request({
        url: moduleName + 'tfinAudit/trailFeeVerify',
        method: 'get',
        params
    })
}
export function trailFeeVerifyNew(params) {
    return request({
        url: moduleName + 'tfinAudit/trailFeeVerify',
        method: 'get',
        params
    })
}
// 决算:下一步流程需要参数
export function getWFWorkItem(params) {
    return request({
        url: moduleName + 'tfinInfo/getWFWorkItem',
        method: 'get',
        params
    })
}

// 决算:获取室分类项目室分类型
export function getRoomTypeBByPrjId(params) {
    return request({
        url: moduleName + 'tfinInfo/getRoomTypeBByPrjId',
        method: 'get',
        params
    })
}

// 决算:获取铁塔类项目铁塔种类
export function getTowerTypeAByPrjId(params) {
    return request({
        url: moduleName + 'tfinInfo/getTowerTypeAByPrjId',
        method: 'get',
        params
    })
}

// 决算:下一步 获取流程场景信息
export function getSceneTempRela(data) {
    return request({
        url: moduleName + 'api/flow/getSceneTempRela', // 斜杠
        method: 'post',
        data
    })
}

// 决算:下一步 确认提交接口
export function finalNextFlow(data) {
    return request({
        url: moduleName + 'tfinInfo/finalNextFlow', // 斜杠
        method: 'post',
        data,
        showLoading: true
    })
}
export function finalNextFlowNew(data) {
    return request({
        url: moduleName + 'tfinInfo/finalNextFlow', // 斜杠
        method: 'post',
        data,
        showLoading: true
    })
}
// 决算: 查询竣工决算表配置信息接口
export function getSelectJGJSBConfig(params) {
    return request({
        url: moduleName + 'tfinInfo/getSelectJGJSBConfig',
        method: 'get',
        params
    })
}
export function getSelectJGJSBConfigNew(params) {
    return request({
        url: moduleName + 'tfinInfo/getSelectJGJSBConfig',
        method: 'get',
        params
    })
}
// 决算: 获取用户信息接口
export function getUserInfo(params) {
    return request({
        url: moduleName + 'api/platform/getUserInfo', // 斜杠
        method: 'get',
        params
    })
}
export function getUserInfoNew(params) {
    return request({
        url: moduleName + 'api/platform/getUserInfo', // 斜杠
        method: 'get',
        params
    })
}
// 决算: 获取财务token(登录信息)接口 // 确认
export function applyTokenByCode(params) {
    return request({
        url: moduleName + 'api/platform/apply4ATokenByCode',
        method: 'get',
        params,
        showLoading: true
    })
}
export function applyTokenByCodeNew(params) {
    return request({
        url: moduleName + 'api/platform/apply4ATokenByCode',
        method: 'get',
        params,
        showLoading: true
    })
}
// 决算: 下一步附件校验接口 // 确认
export function checkValid(data) {
    return request({
        url: moduleNameThree + 'api/attachment/file/checkValid',
        method: 'post',
        data
    })
}
export function checkValidNew(data) {
    return request({
        url: moduleNameThree + 'api/attachment/file/checkValid',
        method: 'post',
        data
    })
}

